﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace sdkRSSReaderCS
{
    public partial class WebPage : PhoneApplicationPage
    {
        private String feedUrl = "";

        public WebPage()
        {
            InitializeComponent();
        }

        private void onLoaded(object sender, RoutedEventArgs e)
        {
            // Create a new WebBrowserTask Launcher to navigate to the feed item. 
            // An alternative solution would be to use a WebBrowser control, but WebBrowserTask is simpler to use.
            NavigationContext.QueryString.TryGetValue("selectedUri", out feedUrl);
            FullWb.Source = new Uri(feedUrl);
/*                    FullWb = new WebBrowserTask();
                    webBrowserTask.Uri = uri;
                    webBrowserTask.Show();
*/             
        }
    }
}